package com.suian.spring.thread.future;

import java.util.concurrent.Callable;

public class MyCallable implements Callable {
    @Override
    public Object call() throws Exception {
        int count = 0;
        for (int i = 0; i < 10; i++) {
            System.out.println(count++);
            Thread.sleep(1000);
        }
        return count;
    }
}
